setaProp(vPDList, #pFadeLength, [#comment: "Length of each fade (in seconds):", #format: #integer, #default: 2])
setaProp(vPDList, #pPictureLength, [#comment: "Length of time to show picture (in seconds):", #format: #integer, #default: 5])
txtrList = []
repeat with j = 1 to the number of castLibs
repeat with i = 1 to the number of castMembers of castLib j
if member(i, j).type = #bitmap then
txtrList.append(member(i, j))
end if
end repeat
end repeat
setaProp(vPDList, #pPicture, [#comment: "The picture to show:", #format: #member, #default: txtrList[1], #range: txtrList])
return vPDList
end
on getBehaviorDescription me
return "Place this behavior in the score script channel to create " & RETURN & "a fade-in (of the specified length) to an overlay of the " & RETURN & "specified picture (for the specified length of time), followed " & RETURN & "by a fade-out (same length as fade-in). At the end of the fade-" & RETURN & "out, the timeline playhead will progress to the next frame."
end
on getBehaviorTooltip me
return "Create a fade-in, pause, then fade-out of a picture (like a slideshow)."